package zuoye_50;

import java.util.Scanner;

//题目：给一个不多于5位的正整数，要求：一、求它是几位数，二、逆序打印出各位数字。
public class Zuoye_024 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int length = 0;
        int temp = num;
        while (temp != 0) {
            length++;
            temp /= 10;
        }
        System.out.println("这是一个" + length + "位数");
        while (num != 0) {
            System.out.print(num % 10+" ");
            num /= 10;
        }
	}
}
